
<?php
class RouterPlugin extends Yaf_Plugin_Abstract {
    
    public function routerStartup(Yaf_Request_Abstract $request,Yaf_Response_Abstract $response){
        $controller = $request->getControllerName();
        $controller = str_replace('_','',$controller);
        $request->setControllerName($controller);
        //var_export($request);
        //var_export($response);
    }

    public function routerShutdown(Yaf_Request_Abstract $request,Yaf_Response_Abstract $response){
        $controller = $request->getControllerName();
        $controller = str_replace('_','',$controller);
        $request->setControllerName($controller);
       // var_export($request);
    }
}